﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _05继承
{
    class Weapon
    {
        protected string _name;
        protected int _ammoNubInMc;     //载弹数量
        protected int _magazineCapacity;     //弹匣容量
        protected float _attackRange;   //攻击范围
        protected float fireRate;       //射速
        public int AmmoNubInMc
        {
            get { return _ammoNubInMc; }
            set { _ammoNubInMc = value; }
        }

        public Weapon()
        {
            Console.WriteLine("武器基类构造函数！");
        }

        public Weapon(string name, int mc, int an, float dis)
        {
            _name = name;
            _ammoNubInMc = an;
            _magazineCapacity = mc;
            _attackRange = dis;
        }

        //public void Fire()
        //{
        //}

        public virtual void Fire()
        {
        }

    }
}
